package com.shop.service;

import com.shop.common.result.util.ResultModel;
import com.shop.entity.CommodityDo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.vo.commodity.AddCommodityVo;
import com.shop.vo.commodity.UpdateCommodityVo;
import com.shop.vo.seller.SelectCommodityByWarehouseVo;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 靳 旺
 * @since 2020-12-17
 */
public interface CommodityService extends IService<CommodityDo> {

    ResultModel updateCommodity(UpdateCommodityVo updateCommodityVo) throws Exception;
    ResultModel getCommodityList(Integer page, Integer size) throws Exception;
    ResultModel search(String name) throws Exception;
    ResultModel delCommodity(Integer id) throws Exception;

    /**
     * 商品添加
     *
     * @param addCommodityVo
     * @return
     * @throws Exception
     */
    ResultModel addCommodity(AddCommodityVo addCommodityVo) throws Exception;

    /**
     * 查询仓库商品
     * @param selectCommodityByWarehouseVo
     * @return
     */
    ResultModel selectCommodityByWarehouse(SelectCommodityByWarehouseVo selectCommodityByWarehouseVo)throws Exception;
}
